package com.un.ebs.inventory.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (AccountMonth)表实体类
 *
 * @author liubo
 * @since 2021-01-04 18:04:21
 */
@Data
@Component
@TableName("tb_account_month")
@SuppressWarnings("serial")
public class AccountMonth extends Model<AccountMonth> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "account_year",  length = -1 , precision = 0)
    private Integer accountYear;
                
    @DbField(name = "account_month",  length = -1 , precision = 0)
    private Integer accountMonth;
                
    @DbField(name = "start_date",  length = -1 , precision = 0)
    private Date startDate;
                
    @DbField(name = "end_date",  length = -1 , precision = 0)
    private Date endDate;
                
    @DbField(name = "close_status",  length = -1 , precision = 0)
    private Boolean closeStatus;
                
    @DbField(name = "close_time",  length = -1 , precision = 0)
    private Date closeTime;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "sync_status",  length = -1 , precision = 0)
    private Boolean syncStatus;
                
    @DbField(name = "sync_at",  length = 40 , precision = 0)
    private String syncAt;
                
    @DbField(name = "sync_at_name",  length = 100 , precision = 0)
    private String syncAtName;

    @DbField(name = "sync_start_time",  length = -1 , precision = 0)
    private Date syncStartTime;

    @DbField(name = "sync_time",  length = -1 , precision = 0)
    private Date syncCloseTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}